﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Day02Night
{
    public  class Graph
    {
        /// <summary>
        /// 组合，定义属性
        /// </summary>
        public Calculate CalculateObj
        {
            get;
            set;
            
        }

        public float CalculateArea()
        {
            return CalculateObj.CalculateArea();
        }
        public float CalculatePerimeter()
        {
            return CalculateObj.CalculatePerimeter();
        }
    }
}